package com.qst.crop.service;

import com.qst.crop.entity.Address;

import java.util.List;

public interface AddressService {
    int add(Address address);

    List<Address> selectByOwnName();



    int updateByPrimaryKey(Address address);


    int deleteByPrimaryKey(Integer id);


    /**
     * 查询默认地址
     * @return
     */
    Address selectDefaultByOwnName();


    int setDefaultAddress(String username);
}
